<?php $this->load->view('admin/common/pageHead');?>
<?php $this->load->view('admin/common/pageHeader');?>
<div class="clr">
	<div>
		<div class="fLeft">
			<?php $this->load->view('admin/common/left_nav'); ?>
		</div>
		<table valign="top" class="allbdr" style="" border="0" cellpadding="0"
			cellspacing="0" width="807">
			<tbody>
				<tr class="fotter-color">
					<td colspan="11" align="center"><b>Manage Gallery</b></td>
				</tr>
				<tr class="fotter-color">
					<td>Sr-No</td>
					<td width="150px">Painting Name</td>
					<td width="150px">Painting Size</td>

					<td width="150">Price</td>


					<td width="90"></td>

					<td align="left" width="150">Action</td>
				</tr>

				<?php  foreach ($gallery as $temp => $admin){?>
				<tr>
					<td><?php  echo $temp+1;?></td>
					<td><?php echo $admin['gallery_name'];?></td>
					<td><?php echo ucfirst($admin['gallery_size']);?></td>


					<td><?php echo ucfirst($admin['gallery_prize']);?></td>


					<td width="45" align="center" bgcolor=""><a
						href="/editGallery/<?php echo $admin['gallery_Id'];?>"
						style="text-decoration: none;"> <img src="/public/images/edit.png"
							name="edit" border="0" value="Edit">
					</a>&nbsp;&nbsp;</td>
					<td width="49" align="center"><a href="javascript:void(0);"
						onClick="del(<?php echo $admin['gallery_Id'];?>)"
						Title="Delete User" style="text-decoration: none;"> <img
							src="/public/images/delete.png" width="16" height="16" border="0">
					</a>
					</td>
				</tr>
				<?php }?>


			</tbody>
		</table>
		<div class="clr"></div>
		<script language="javascript">
function del(id)
{
	if(confirm("Do you want to Delete This User"))
	{
		document.location="/deleteGallery.php/"+id;
	} else{
		document.location="/gallery.php";
	}
}
</script>


		<?php $this->load->view('admin/common/pageFooter');?>